var starComponent = React.createClass({
	componentDidMount: function() {

	},
	receiveMsg: function(data) {

	},
    getInitialState: function () {
        return {
            startValue: this.props.data
        };
    },
    render:function() {
        var startValue = parseInt(this.state.startValue);
        var startHtmlArray = [];
        (function() {
            for(var index = 1; index <= 5; index++) {
               if(index <= startValue) {
                   startHtmlArray.push(<span className="ative-star"></span>);
               } else {
                   startHtmlArray.push(<span className="default-star"></span>);
               }
            }
        })();
        return ~star;
    }
});
module.exports = starComponent;